package com.wy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@ApiModel(value = "住户对象",description = "住户对象")
@ExcelTarget("HouseholdBean")
public class HouseholdBean implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer userId; //系统用户

    private Integer houseId; //房屋ID

    @ApiModelProperty(value="住户姓名",name="householdName",example="1",dataType = "String")
    @Excel(name = "住户姓名", orderNum = "4", mergeVertical = false, isImportField = "householdName")
    private String householdName;

    @ApiModelProperty(value="性别",name="gender",example="1",dataType = "String")
    @Excel(name = "性别", orderNum = "5", mergeVertical = false,replace= {"男_0","女_1"}, isImportField = "gender")
    private String gender;

    @ApiModelProperty(value="出生日期",name="birthDate",example="1",dataType = "String")
    @Excel(name = "出生日期", orderNum = "6", mergeVertical = false,isImportField = "birthDate")//format = "yyyy-mm-dd"
    private String birthDate;

    @ApiModelProperty(value="手机",name="mobile",example="1",dataType = "String")
    @Excel(name = "手机", orderNum = "7", mergeVertical = false,isImportField = "mobile")
    private String mobile;

    @ApiModelProperty(value="户籍地址",name="address",example="1",dataType = "String")
    @Excel(name = "户籍地址", orderNum = "8", mergeVertical = false,isImportField = "address")
    private String address;

    @ApiModelProperty(value="户籍类别",name="peopleType",example="1",dataType = "String")
    @Excel(name = "户籍类别", orderNum = "9", mergeVertical = false,isImportField = "peopleType")
    private String peopleType;

    @ApiModelProperty(value="所在单位",name="company",example="1",dataType = "String")
    @Excel(name = "所在单位", orderNum = "10", mergeVertical = false,isImportField = "company")
    private String company;

    private String department;

    @ApiModelProperty(value="身份类型",name="identityType",example="1",dataType = "String")
    @Excel(name = "身份类型", orderNum = "11", mergeVertical = false,isImportField = "identityType")
    private String identityType;

    @ApiModelProperty(value="证件类型",name="credentialType",example="1",dataType = "String")
    @Excel(name = "证件类型", orderNum = "12", mergeVertical = false,isImportField = "credentialType")
    private String credentialType;

    @ApiModelProperty(value="证件号码",name="credentialNo",example="1",dataType = "String")
    @Excel(name = "证件号码", orderNum = "13", mergeVertical = false,isImportField = "credentialNo")
    private String credentialNo;

    private String idCardImage1;

    private String idCardImage2;

    private String facePic;

    private String currentImage;

    private String authStatus;

    private String status;

    private Date createTime;

    private Date modifyTime;

    private String creater;

    private String modifier;

    private Integer ext1;

    private Integer ext2;

    private String ext3;

    private String ext4;

    private List<String> tags;//用于数组的转换

    private String ext5;//门禁卡号

    private String ext6;

    private String ext7;

    private String ext8;

    @ApiModelProperty(value="房屋编号",name="houseName",example="1",dataType = "String")
    @Excel(name = "房屋编号", orderNum = "3", mergeVertical = false, isImportField = "houseName")
    private String houseName;

    private String unitName;


    private Integer buildingId;

    @ApiModelProperty(value="楼栋名称",name="buildingName",example="1",dataType = "String")
    @Excel(name = "楼栋名称", orderNum = "2", mergeVertical = false, isImportField = "buildingName")
    private String buildingName;

    private Integer residenceId;

    @ApiModelProperty(value="小区名称",name="projectName",example="1",dataType = "String")
    @Excel(name = "小区名称", orderNum = "1", mergeVertical = false, isImportField = "projectName")
    private String projectName;

    private String nation; //民族
    private String szValidBegin; //有效期开始时间
    private String szValidEnd; //有效期结束时间
    private String certificateOrganization; //签发机关
    private String memberRelation; //与业主的关系
    private List<String> carInfos; //车辆数组
    private String carInfos_str; //车辆数组用于前台显示
    private String familyMembers; //家属信息

    private String houseOwnerName; //屋主姓名
    private String houseOwnerCredentialNo; //屋主身份证
    private String houseOwnerMobile; //屋主手机号码

    public String getCarInfos_str() {
        return carInfos_str;
    }

    public void setCarInfos_str(String carInfos_str) {
        this.carInfos_str = carInfos_str;
    }

    public String getHouseOwnerName() {
        return houseOwnerName;
    }

    public void setHouseOwnerName(String houseOwnerName) {
        this.houseOwnerName = houseOwnerName;
    }

    public String getHouseOwnerCredentialNo() {
        return houseOwnerCredentialNo;
    }

    public void setHouseOwnerCredentialNo(String houseOwnerCredentialNo) {
        this.houseOwnerCredentialNo = houseOwnerCredentialNo;
    }

    public String getHouseOwnerMobile() {
        return houseOwnerMobile;
    }

    public void setHouseOwnerMobile(String houseOwnerMobile) {
        this.houseOwnerMobile = houseOwnerMobile;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public String getHouseholdName() {
        return householdName;
    }

    public void setHouseholdName(String householdName) {
        this.householdName = householdName == null ? null : householdName.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getPeopleType() {
        return peopleType;
    }

    public void setPeopleType(String peopleType) {
        this.peopleType = peopleType == null ? null : peopleType.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department == null ? null : department.trim();
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType == null ? null : identityType.trim();
    }

    public String getCredentialType() {
        return credentialType;
    }

    public void setCredentialType(String credentialType) {
        this.credentialType = credentialType == null ? null : credentialType.trim();
    }

    public String getCredentialNo() {
        return credentialNo;
    }

    public void setCredentialNo(String credentialNo) {
        this.credentialNo = credentialNo == null ? null : credentialNo.trim();
    }

    public String getIdCardImage1() {
//        if(StringUtils.isEmpty(idCardImage1)){
//            return "";
//        }else {
//            return "/img/"+this.projectName+"/card/"+idCardImage1.replace("#","%23");
//        }
        return idCardImage1;
    }

    public void setIdCardImage1(String idCardImage1) {
        this.idCardImage1 = idCardImage1 == null ? null : idCardImage1.trim();
    }

    public String getIdCardImage2() {
//        if(StringUtils.isEmpty(idCardImage2)){
//            return "";
//        }else {
//            return "/img/"+this.projectName+"/card/"+idCardImage2.replace("#","%23");
//        }
        return idCardImage2;
    }

    public void setIdCardImage2(String idCardImage2) {
        this.idCardImage2 = idCardImage2 == null ? null : idCardImage2.trim();
    }

    public String getFacePic() {
//        if(StringUtils.isEmpty(facePic)){
//            return "";
//        }else {
//            return "/img/"+this.projectName+"/face/"+facePic.replace("#","%23");
//        }
        return facePic;
    }

    public void setFacePic(String facePic) {
        this.facePic = facePic == null ? null : facePic.trim();
    }

    public String getCurrentImage() {
        return currentImage;
    }

    public void setCurrentImage(String currentImage) {
        this.currentImage = currentImage == null ? null : currentImage.trim();
    }

    public String getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(String authStatus) {
        this.authStatus = authStatus == null ? null : authStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater == null ? null : creater.trim();
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public Integer getExt1() {
        return ext1;
    }

    public void setExt1(Integer ext1) {
        this.ext1 = ext1;
    }

    public Integer getExt2() {
        return ext2;
    }

    public void setExt2(Integer ext2) {
        this.ext2 = ext2;
    }

    public String getExt3() {
        return ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3 == null ? null : ext3.trim();
    }

    public String getExt5() {
        return ext5;
    }

    public void setExt5(String ext5) {
        this.ext5 = ext5 == null ? null : ext5.trim();
    }

    public String getExt6() {
//            if(StringUtils.isEmpty(ext6)){
//            return "";
//        }else {
//            return "/img/"+this.projectName+"/card_face/"+ext6.replace("#","%23");
//        }
        return ext6;
    }

    public void setExt6(String ext6) {
        this.ext6 = ext6 == null ? null : ext6.trim();
    }

    public String getExt7() {
        return ext7;
    }

    public void setExt7(String ext7) {
        this.ext7 = ext7 == null ? null : ext7.trim();
    }

    public String getExt8() {
        return ext8;
    }

    public void setExt8(String ext8) {
        this.ext8 = ext8 == null ? null : ext8.trim();
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public Integer getResidenceId() {
        return residenceId;
    }

    public void setResidenceId(Integer residenceId) {
        this.residenceId = residenceId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getExt4() {
        return ext4;
    }

    public void setExt4(String ext4) {
        this.ext4 = ext4;
    }

    public List<String> getTags() {
        return this.tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getSzValidBegin() {
        return szValidBegin;
    }

    public void setSzValidBegin(String szValidBegin) {
        this.szValidBegin = szValidBegin;
    }

    public String getSzValidEnd() {
        return szValidEnd;
    }

    public void setSzValidEnd(String szValidEnd) {
        this.szValidEnd = szValidEnd;
    }

    public String getCertificateOrganization() {
        return certificateOrganization;
    }

    public void setCertificateOrganization(String certificateOrganization) {
        this.certificateOrganization = certificateOrganization;
    }

    public String getMemberRelation() {
        return memberRelation;
    }

    public void setMemberRelation(String memberRelation) {
        this.memberRelation = memberRelation;
    }

    public List<String> getCarInfos() {
        return carInfos;
    }

    public void setCarInfos(List<String> carInfos) {
        this.carInfos = carInfos;
    }

    public String getFamilyMembers() {
        return familyMembers;
    }

    public void setFamilyMembers(String familyMembers) {
        this.familyMembers = familyMembers;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }
}